I am not sure why, but lately, my yii 1 website shows pages from the cache too much. Earlier, if I uploaded via FTP, it'd show the latest page. Now it doesn't do that. I also get complaints from users that they are now faced with old pages or they have problems that are later fixed with a history clear.
What could potential problems be. Can I tune down Yii caching or flush it?
Related
We’re using Magento Community version 1.7 and have a standard desktop theme and a mobile theme. We’ve added matched expressions to the General > Design > Themes section to display the relevant theme based on browser user agent.
Everything works great when the cache is switched off. However, when the cache is switched on and cleared, the theme which is loaded first gets cached. Is there a way around this? Either creating a separate cache for each theme or even switching the cache off altogether for the mobile theme?
Many thanks in advance for any advice you can give.
One way to bypass this is to leave the block cache and layouts not cached. These two are probably causing the issue to happen. This won't be that great of a performance hit since Magento is a resource hog anyway. I would recommend enabling Zend Full Page Cache and perhaps even using something like memcached or APC to supplement the default magento caching.
Hope this helps!
I look after a small site which was built a few years ago in Magento ver. 1.3.2.4
Fairly frequently the site suffers inexplicable problems such as products suddenly not displaying by price (where no settings have been changed) and orders being sent in triplicate to the website owners email. It seems really hard to find reasons for why things like these happen and even harder to get support. I know that the version being used is old and that to upgrade is a serious and expensive development job. Would it be fair to say that because a legacy version is being used that we can expect the site to become less and less robust over time?
Many thanks
Bev
In the order of "will it work with newer versions of PHP?", the answer is "not unless you make modifications to the code yourself." Which means, to put a not-to-fine a point on it, expect your web hosting provider to "Get Religion" somewhere along the way, decide to upgrade out of a security hole by upgrading PHP which suddenly causes your website to crash.
Magento 1.3.x.x also shows its age when dealing with Prototype Framework and Scriptaculous versions past their "sell by date" causing weird and annoying issues with newer browsers.
Im working on a large site, trying to decrease the load times, and I have bumped into a rather strange issue. Im using google chromes built in developer tools, and I am finding that certain images are getting hung up, and the browser is continuing to look for them. Has anyone encountered this issue before? How do I isolate what is causing this problem?
The site runs a couple of ads, is it possible this error is occurring because of ad networks?
Here is a link to the actual problem: http://i.stack.imgur.com/IEtLA.png (updated)
If you have not done already, use a tool like http://www.webpagetest.org/ to test your site. It will test the site from nominated locations around the world, with the browser of your choice, and you will get waterfall charts for your page.
Just an idea.... If not yet done, try Google's free website testing and optimization tool 'Website Optimizer'. See what it tells you.
Another idea, try accessing the site with another browser, either one, IE, Safari, or FireFox, to see if you get the same issue; if you do then it may be the server for some reason not serving those images.
One more.... To isolate further, if possible, try using only few (one or two) images in your site/pages; if these load then add one or two more images until you encounter the issue, then that image has something and you may replace that image.
I am using Ajax / jquery on a webpage i am designing... in order for it to function, i include (at the top of my page) the javascript at: http://code.jquery.com/jquery-1.4.4.js
This works great and all, but i have a fear that
1) the code might get changed without me knowing, then i encounter problems and try to debug for days / hours before finding that the code at this site changed
2) the website is no longer used / specific code no longer hosted years from now
So would it be safer to save that javascript file onto my server, and access it from there?
You should use either a Microsoft or Google CDN. It will be much faster, it will be cached for a lot of your users and it's guaranteed to be there, as opposed to the jQuery link you include.
http://code.jquery.com is jQuery's CDN (provided by Media Temple). The code at http://code.jquery.com/jquery-1.4.4.js will never change; jQuery will release a new version (which will be at a different URL), if anything needs to change (which happens all the time; version 1.5b was released today).
The jQuery guys know what they're doing, and they setup a CDN so people can easily link to jQuery. They're just as (un)likely to bring down the CDN as Google and Microsoft are at bringing theirs down.
See http://docs.jquery.com/Downloading_jQuery for more information.
Having said that, it would seem the Google hosted version (http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js), is referenced more in websites; this leads to a small performance advantage as far as your users are concerned, as the file has more chance of being cached.
It's safe, notice the version number? As jQuery is updated then that version number will change.
Of course using a CDN will always mean that it's possible for the content delivery network to go out of business. But that's the case with any non directly controlled server.
You of course could use the Google CDN for jQuery, I highly recommend it.
Relevant:
http://code.google.com/apis/libraries/devguide.html#jquery
I'm pretty new to web design and have recently been working on an amatuer photography website. I updated it on Sunday night, cleared cache etc on my home computer and it was all looking fine.
The problem is when I checked it from work, behind corporate firewall etc, some of the pages have changed, some have not. For example the home page still shows old images that were replaced, whereas some of the gallery pages have new images on them but no new functionality or style (from css/js file). I've renamed the js and css file and deleted old files to try to force the browser to get a new version but it still looks like it's using old version.
I'm concerned people visiting the site will have a strange/hybrid version of the site, could this be because it's being cached on corporate server somewhere rather than on individual workstation?
Parts of the site could be being cached by your corporate server infrastructure, notably, a Proxy Server. You can check this in your headers that come from your site. A tool like FireBug or Fiddler2 should identify if a Proxy has been involved. Sorry, I don't know the exact header to look for as I don't operate behind one at the moment to try and see.
Though why only part of your site is behaving this way is beyond me. Worth checking though.