{title} weirdness with Smarty Caching enabled

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
tristan
Dev Team Member
Dev Team Member
Posts: 375
Joined: Tue May 02, 2006 10:58 am

{title} weirdness with Smarty Caching enabled

Post by tristan »

Not sure whether this belongs here or as a bug report on The Forge. Had a problem today on a CMS Mades Simple 2.1.2 upgraded installation. The {title} tag in the, almost completely, default template didn't output the actual titles as set in the content manager at all, most of the time it would output the title of the parent content page or sometimes a completely different content page's title.

When setting the Enable Smarty Caching to No everything works as advertised again.

Code: Select all

----------------------------------------------
Cms Version: 2.1.2
Installed Modules:
AdminSearch: 1.0
CGExtensions: 1.52.2
CGFBPost: 1.0.0.1
CGSimpleSmarty: 2.0.5
CGSocialBlaster: 1.0.3
CGTweet: 1.2
CMSContentManager: 1.1
CMSMailer: 6.2.14
DesignManager: 1.1.1
FileManager: 1.5.2
FormBuilder: 0.8.1.3
FrontEndUsers: 1.31.1
JQueryTools: 1.3.8
MicroTiny: 2.0.3
ModuleManager: 2.0.2
Navigator: 1.0.2
News: 2.50.4
Printing: 1.1.2
Search: 1.50.2
ThemeManager: 1.1.8
TinyMCE: 3.1.2

Config Information:
php_memory_limit:
max_upload_size: 64000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: EDT
permissive_smarty: false

Php Information:
phpversion: 7.0.5
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22517
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 256M
max_execution_time: 50000
register_globals: Off (False)
output_buffering: 0
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 64M
upload_max_filesize: 64M
session_save_path: /tmp (1777)
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: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: On (True)
Server Information:
Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux On Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
Server Db Type: MySQL (mysqli)
Server Db Version: 5.1.73
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:
tmp: /homepages/20/a30/htdocs/tmp (0705)
tmp_cache: /homepages/20/a30/htdocs/tmp/cache (0705)
templates_c: /homepages/20/a30/htdocs/tmp/templates_c (0705)
modules: /homepages/20/a30/htdocs/modules (0705)
uploads: /homepages/20/a30/htdocs/uploads (0705)
File Creation Mask (umask): /homepages/20/a30/htdocs/tmp/cache (0705)
config_file: 0444
----------------------------------------------
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: {title} weirdness with Smarty Caching enabled

Post by Rolf »

I am allergic to caching, so I never use it... but you probably need to add the "nocache" parameter.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
tristan
Dev Team Member
Dev Team Member
Posts: 375
Joined: Tue May 02, 2006 10:58 am

Re: {title} weirdness with Smarty Caching enabled

Post by tristan »

Tried experimenting with that nocache tag as well but seems silly to have to use it on a title tag and extra silly that it displays the wrong title tag, not an older not updated title tag from the same page, but really a title tag from a completely different page.
Post Reply

Return to “CMSMS Core”