Occasional incorrect page displayed; cache clear solves

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
severtki
Forum Members
Forum Members
Posts: 27
Joined: Tue Aug 11, 2009 1:33 pm

Occasional incorrect page displayed; cache clear solves

Post by severtki »

I've been having a peculiar, sporadic problem over multiple months: occasionally I'll notice, or will be told about by a website visitor, that an incorrect page's content is being displayed. For example, in a two-column layout, sometimes column 1's info will display a news or a blog entry instead of the column 1 content. The other content is completely unrelated to the original page content, of course, so this appears unusual to the website visitor.

In all cases, if I clear the cache, the problem is immediately resolved. The problem is, I don't always know that there is a problem until I'm notified about it.

Any idea what is causing this (and how to prevent it)? It's sporadic enough I haven't found a way to replicate it.

Thanks,
Kirk

----------------------------------------------

Cms Version: 2.2.10

Installed Modules:

AdminSearch: 1.0.4
CGBlog: 1.15.10
CGExtensions: 1.63.2
CGFeedMaker: 1.0.20
CGGoogleMaps2: 1.1.1
CGSimpleSmarty: 2.2.1
CGSmartImage: 1.22.7
CMSContentManager: 1.1.7
CMSMailer: 6.2.14
Captcha: 1.0
CmsJobManager: 0.1.3
DesignManager: 1.1.6
FileManager: 1.6.8
FilePicker: 1.0.4
FormBuilder: 0.8.1.6
Gallery: 2.3.2
JQueryTools: 1.4.2
MenuManager: 1.50.3
MicroTiny: 2.2.4
ModuleManager: 2.1.6
Navigator: 1.0.9
News: 2.51.5
Search: 1.51.6
SitemapMgr: 1.5.4
TinyMCE: 3.2-beta6
avplayer: 1.3.2

Config Information:

php_memory_limit:
max_upload_size: 250000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
auto_alias_content: true
locale:
set_names: false
timezone: America/New_York
permissive_smarty: true

Php Information:

phpversion: 7.2.21
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 32767
E_STRICT: 2048
E_DEPRECATED: 8192
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 30
register_globals: Off (False)
output_buffering: 0
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 250M
upload_max_filesize: 250M
session_save_path: /opt/alt/php72/var/lib/php/session (0700)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On

Performance Information:

allow_browser_cache: On (True)
browser_cache_expiry: 2
php_opcache: Off (False)
smarty_cache: On (True)
smarty_compilecheck: On (True)
auto_clear_cache_age: On (True)
Server Information:

Server Software: LiteSpeed
Server Api: litespeed
Server Os: Linux 3.10.0-962.3.2.lve1.5.25.6.el7.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 10.1.41
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:

tmp: /home/noaorg/public_html/tmp (0755)
tmp_cache: /home/noaorg/public_html/tmp/cache (0755)
templates_c: /home/noaorg/public_html/tmp/templates_c (0755)
modules: /home/noaorg/public_html/modules (0755)
uploads: /home/noaorg/public_html/uploads (0755)
File Creation Mask (umask): /home/noaorg/public_html/tmp/cache (0755)
config_file: 0444
----------------------------------------------
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm
Location: Nimbin, Australia

Re: Occasional incorrect page displayed; cache clear solves

Post by rotezecke »

Maybe disable smarty caching.
severtki
Forum Members
Forum Members
Posts: 27
Joined: Tue Aug 11, 2009 1:33 pm

Re: Occasional incorrect page displayed; cache clear solves

Post by severtki »

Thanks, rotezecke.

Note on disabling Smarty says: "... Note, this functionality may interfere with the behaviour of some modules or plugins, or plugins that use non-inline forms."

I'm a little wary of making a setting change like this on a production site without an understanding of what interference with modules or plugins might be. Any clues, or is there a section of documentation about this I haven't stumbled on yet?

Thanks!
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm
Location: Nimbin, Australia

Re: Occasional incorrect page displayed; cache clear solves

Post by rotezecke »

from the V2.3 announcement viewtopic.php?f=1&t=81141:
8. Removed all internal use of Smarty caching
The Smarty caching functionality in CMSMS was problematic with respect to dynamic applications, and it was hard to use well. For 2.3 we have removed all of the functionality related to Smarty caching. Third party tools such as varnish or other other proxies serve this purpose in a much better way.
Smarty caching gave me a few headaches when it was introduced years ago. I disabled it after about a month and the headaches were gone.
Post Reply

Return to “CMSMS Core”