Updating page content

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Barrowboy
Forum Members
Forum Members
Posts: 223
Joined: Mon Dec 16, 2013 4:09 pm

Updating page content

Post by Barrowboy »

Version 1.12

Can you explain why we don't see the content changes immediately?

The changes are showing in the preview but not showing on the site.

Do we have to ask viewers to refresh their browsers each time to see any updated content?

Do we have to clear the cache each time on the system?

What are the correct cache settings etc.?
In advanced tap: We have.
Allow Browser to Cache Pages: not ticked.
Server Cache Settings: set to Zero.


Thanks
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Updating page content

Post by velden »

This *might* be caused by time differences between database and/or filesystem and php server.

It then prevents the caching system from working properly.

So check whether both mysql and filesystem use same time as php server.

Filesystem can be checked in 'System Information'. Search for 'Check for filesystem time differences (server_time_diff)'

Database can be checked by creating a temporary UDT and run it (from within 'run UDT' admin page):

Code: Select all

$db = cmsms()->GetDb();
$query = 'select UNIX_TIMESTAMP()';
$dbtime = $db->GetOne($query);
$servertime = time();
echo 'Time difference: ' . abs($dbtime-$servertime);
Time difference should be less than 3 (seconds).
Barrowboy
Forum Members
Forum Members
Posts: 223
Joined: Mon Dec 16, 2013 4:09 pm

Re: Updating page content

Post by Barrowboy »

Hi

Thanks for your response.

The 'Check for file difference' is:-
no filesystem time difference found

Running your UDT code shows/
Time difference: 0

Any further suggestion what the problem may be.

This is the Server information

Server API (server_api) cgi-fcgi
Server Database (server_db_type) mysql (mysqli)
Server Database Version (server_db_version) Success 5.5.46
Check database access levels (server_db_grants) Success found a "grant all" statement that appears to be suitable
Check for filesystem time differences (server_time_diff) Success no filesystem time difference found
Server Software (server_software) apache
Server Operating System (server_os) linux 2.6.32-531.29.2.lve1.3.11.1.el6.x86_64 on x86_64
Timezone Offset (tz_offset) Success 0



Regards
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Updating page content

Post by Rolf »

How and/or when did this started?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Barrowboy
Forum Members
Forum Members
Posts: 223
Joined: Mon Dec 16, 2013 4:09 pm

Re: Updating page content

Post by Barrowboy »

Hi Rolf

We are unsure because we have only just finished developing the site and made it go live there are over 400 pages of content and one of our editors updated a page yesterday and reported the fault. We have now noticed that if we update a page as Administrators its the same.

If we reset the system cache and refresh the page it seems ok, but this is not an acceptable way to go forward we have about one hundred editors to give access too their relevant pages.

It reacts the same on IE and Chrome.

Are there any systems settings we have overlooked.

I must say the system is ''Great'' and everyone loves it.
Regards
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Updating page content

Post by Rolf »

I just had the same problem and somehow Smarty Caching was enabled. This was in 2.0.1.1 though...
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Barrowboy
Forum Members
Forum Members
Posts: 223
Joined: Mon Dec 16, 2013 4:09 pm

Re: Updating page content

Post by Barrowboy »

Phew

That's a weight off my mind.

I've just unticked the smarty caching it it now works ok.

Will do further checks tomorrow.

Many thanks for point me in the right direction.
Post Reply

Return to “CMSMS Core”