Save and Preview issue

More
12 years 11 months ago #26616 by ggppdk
Replied by ggppdk on topic Save and Preview issue
Our current approach of using user time to display items is problematic because users worldwide will start seeing item in with several hours difference

I checked out and joomla uses server time when comparing publish-up and publish-down dates, and i think this is the correct approach since the item must be worldwide available at the same time !!!

The user just sets the publish-up time according to his/her local time and the item becomes available worldwide the time he/she expected !!!

In your case the problem is not timezone !!! the timezone difference if irrelevant when creating items, since a user creates each item while being in timezone A and then views it while being in timezone A. IT WOULD MATTER if a user tried to view the item while being in timezone B

Your problem is that your local time is a couple of minutes behind the server time, set your clock 2-5 minutes ahead and test ...

Anyway i will change the source code NOT TO use users local time for comparing to publish up times, but i repeat this is irrelevant to your problem


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #26631 by igcorreia
Replied by igcorreia on topic Save and Preview issue
Sorry for the insistence, now I get it. :D I will try it.

About the local time I never thought about that issue, nice one.

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #26696 by ggppdk
Replied by ggppdk on topic Save and Preview issue
And also we need not to forget this issue (which is not relevant to your problem):

Update FLEXIcontent publish-up comparison code to USE server and to User time as is in com_content in both J1.5 and J2.5

Bug Tracker Issue:

code.google.com/p/flexicontent/i ... ail?id=477


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #26725 by igcorreia
Replied by igcorreia on topic Save and Preview issue
Finaly I found the problem, OMG|!!!!!

this is the problem I am changing/updateing the fields via QUERY so the item CHACE is not clean.

How can I clean the item cache after the update?

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #26727 by ggppdk
Replied by ggppdk on topic Save and Preview issue
You can use (try) this for items
Code:
if (!FLEXI_J16GE) { $catscache = & JFactory::getCache('com_flexicontent_items'); $catscache->clean(); } else { $catscache = FLEXIUtilities::getCache(); $catscache->clean('com_flexicontent_items'); }
and this for categories:
Code:
if (!FLEXI_J16GE) { $catscache = & JFactory::getCache('com_flexicontent_cats'); $catscache->clean(); } else { $catscache = FLEXIUtilities::getCache(); $catscache->clean('com_flexicontent_cats'); }


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.349 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save