TYPO3 page does not get cached - caching

I have some 4.5.6 installation of TYPO3 and a quite old, modified tt_news extension running.
My client noticed that the indexed search is not working for the news pages anymore.
So i checked, and as I thought the cache entries for the detail pages are not created anymore.
Actually only one cache entry is created, containing the html of the first detail page I requested (through the frontend).
I enabled the adminPanel and it also shows me that no_cache = 1. Why is that? My URL looks like this:
www.mypage.com?id=231&tx_ttnews[tt_news]=2457&tx_ttnews[backPid]=&tx_ttnews[swords]=&cHash=287ca316c98761c2dff769a7d3c6b587
Anyone can help me with that?

There are several places to disable the TYPO3 page cache.
a) It can be set by TypoScript using
config.no_cache = 1
or
page.config.no_cache =1
Check in the TypoScript Object Browser if it is set on this page and check how it is set.
b) It can be set in the page properties.
c) It can be set in an extension. If e.g. your customized version of tt_news contains this code
$GLOBALS['TSFE']->set_no_cache()
the cache for all pages containing the plugin is disabled.
Furthermore the plugin can be made running as a USER_INT like this
$this->pi_USER_INT_obj = 1;
If this is set, then the content of this plugin is not checked. E.g. on the page you opened the admin panel, you have three USER_INT objects. But this is not the problem since you have set "no_cache" which means that the cache for the whole page is disabled.

The problem was related to realUrl. We updated to a new version, and then caching worked again. Looks like realUrl generated invalid cHashes...

Related

TYPO3, please don't cache link to PDF-file

I'm still using TYPO3 7.6 and my editor upload a new PDF-file via filelist weekly. I told him, that he has to overwrite his current file with the same filename - f.e. fileadmin/user_upload/editor/1.pdf
We've insert a Content element file links and reference the 1.pdf from FAL.
He clear the page cache (flash) every week after uploading. I've set
config.cache_period = 604800
config.cache_clearAtMidnight = 0
in my setup.typoscript and at page properties, I've also checked: Cache deactivate:
But the website users still see the old PDF-file from last week. They have to click F5 manually, to see the current content. That's not good.
How can I linked my FAL-file without cache?
Maybe I should use config.cache_clearAtMidnight = 1?
Or a direct link via TypoScript and COA_INT (don't know how exactly? ;) )?
is there a solution with FLUID?
Can some one help and give me a hint? Thanks.

Joomla pages not changing in a frontend after save

I have a following problem: i made some change in admin area (updated existed page). That page was under lock, so i removed locking. I made some text changes and it seems that server saves them. But in a frontend page are not changing at all. I removed cache files, pushed clear cache, even disabled cache module, but without luck.
The problem was that pages, which was not editable, was created with HG Static Content Module. So I found this modules in modules admin section and changed them.

Url Rewrite of a CMS page in Magento

As a new magento developer I'm using a theme to develop my store. I want to change the URL key of CMS page about. I followed the steps written here but I can't find my layout file for about page on the theme directory or base directory for change XML URL tag.
How can I edit the layout file? Can anyone help me?
Actually that tutorial is a little confusing because there, they are showing an example of changing a URL for two different type of pages (CMS and system).
For changing the URL of a CMS page, like about in your case, it's enough that you proceed until point 12. In short:
First. you change the URL from: (main menu) CMS/Pages/Your_Page -> Url Key: newURL
Then, find the blocks that it is used (e.g footer) and change the URL accordingly.
Plus, in general working in Magento after changing things like page URLs you need to do a reindex and in case of using cache you have to refresh/remove your cached data. Both could be found under System tab (Cache Management & Index Management).

Why my changes on template files are not showing up?

I am working on Magento and trying to make some changes on one of the .phtml files. But my changes never reflect on the web site. I have tried the following things:
Clear Magento cache and delete cache storage
Open the path hint and make sure I am editing the correct file
Go to magento admin panel, System->Configuration->Design, and make sure templates, skin, layout and default folders are correct.
None of the above action worked. Is there anything else that I could do?
Thanks a lot.
Screen shot
First thing you would want to check is the cache. System > Cache Management. Disable the Layout and Blocks HTML output caches and refresh the frontend page where you've put your changes.
If cache isn't the problem there is a way to find out which template is rendered in a specific location because you may not be editing the correct file.
Go to System > Configuration, select your website from top left Current Configuration Scope, then go to Developer > Debug and set Template Path Hints to Yes.
After this, save your config and refresh the page where you want to modify the .phtml.
If you are working on a live environment make sure not everybody will be able to see the template paths by putting your IP in the Allowed IPs input from Developer Client Restrictions.
After you are finished with this re-enable the cache.

Checkout button in Magento not working after I upgraded from 1.6 to 1.7. - Am I missing something?

The store works when I add an item, but when I click to checkout the link re-directs to the home page store. It’s the same when I click on Proceed to checkout. Before, I had the cache management disabled and now is enabled. Is this related or what could be causing this problem? Thanks so much for the help, with kind regards.
Try deleting all the cache files stored in the /var/cache folder in magento.
Using chrome console or firebug check to see if you have any JS error before redirecting
Check your web logs to see if you have any php errors on the checkout page
It's most likely to be a Javascript issue when the checkout button does not work. Remove your theme to fall back to the base theme then see if it works.
I fixed and these where the steps I took to make it work. However, before you do any of the following work disable your cache management:
Open Magento admin panel
Go to System>Cache Management
Check all Cache types and in the Actions box select refresh
Then select all Cache types and in the Actions box select disable
Also click Flush Magento Cache and Flush Cache Storage buttons
Now you are free to perform any changes to your store.
Now, if you upgraded and nothing works make sure that under:
System/Configuration -> Web – Default Pages /that your ‘Home page’ is listed under
‘CMS Home Page’. Also check:
System/Configuration -> Design – Packages /that your ‘Template’ is listed under
‘Current Package Name’. Otherwise default takes over.
Note: your template will still come up with all its features and buttons in your browser, even if no home page is setup; this is because of the previous version configuration.
If the ‘Home Page’ and ‘Template’ are not listed, add them and go into your File System and erase everything under ‘var/cache’ and ‘var/session’. Reload your home page: www.yourstore.com/magento/ it should work. After, all work is done enable your cache management.
Also, it’s good to check that your home page lands at the store, and to check - do the following:
Login to your Magento MySQL database.
Open the db [database_prefix] for your store.
Locate core_config_data.
Find the row with entry: 'web/unsecure/base_url' and 'web/secure/base_url' they should look like www.yourstore.com/magento/ or whatever you name your magento store file.

Resources