fbrnc / aoe_static Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://www.fabrizio-branca.de/make-your-magento-store-fly-using-varnish.html
Home Page: http://www.fabrizio-branca.de/make-your-magento-store-fly-using-varnish.html
Hi,
I tested your varnish.demo.aoemedia.de Shop and I created an Account, but I can't login. I downloaded the Extension from your Website and I also get an error at the Login. So did you test the Login? and can I use this code for Live-Systems or is it only a Proof-of-Concept. The other parts working quite well but I can't find the real problem in the Login process.
Hi Fabrizio,
Default Varnish configuration allows any client to purge the entire Varnish cache. This might not be desirable, maybe would be better to bypass cache only for this request.
{{{
curl -v -H "Cache-Control:no-cache" http://varnish.demo.aoemedia.de/*
}}}
After you run this, check X-Cache header for these pages http://varnish.demo.aoemedia.de/electronics.html and http://varnish.demo.aoemedia.de/
Cheers,
Mario
Hello, I'm trying to implement your solution on Magento 1.6.2
I've found a strange issue with following piece of code in config.xml
<controller_action_predispatch>
<observers>
<aoestatic>
<class>aoestatic/observer</class>
<method>processPreDispatch</method>
</aoestatic>
</observers>
</controller_action_predispatch>
<controller_action_layout_load_before>
<observers>
<aoestatic_cacheable>
<class>aoestatic/observer</class>
<method>beforeLoadLayout</method>
</aoestatic_cacheable>
</observers>
<controller_action_layout_load_before>
When enabled, magento chokes with this error:
Mage registry key "_singleton/aoe_static/observer" already exists
If I vary aoestatic/observer to aoe_static/observer (only first of them) the page is loading, so it seemes that magento require 2 different classes.
Can you confirm this bug or it's just me?
Thanks in advance...
Since there is no tag for this repository containing a composer.json file, only the master code status can be installed with composer which is not desired by security reasons.
In order to fix this, I guess it would be enough adding a new tag to this module 0.0.3
.
Most of the links of the form [module] / [controller] / [action] / uenc / [encodedurl] redirect to the home page. Have you a solving for this? May be some ideas how to catch it and allow it for varnish, i believe that it broken by varnish.
Hi,
are you planning to modify your code because of the form key issue. There are still no good work around for that problem.
I still trying a few thing but the form key issue maybe disappear but then I get a few more problem so maybe you have a good adive.
With the plugin from PHOENIX-MEDIA that also don't really work also Turpentine :(.
I've tried to use Aoe_static together with Pagecache powered by Varnish - Phoenix Media but from time to time failed with 500/503 code and PHP Fatal error in apache logs:
PHP Fatal error: Call to a member function getLastPageNumber() on a non-object in /var/www/test/magento/app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php on line 798
may be they are incompatible ?
I took a brief look at the module to see whether there was any support for using cookies to store some data, in order to not have to fire an AJAX call on every page load.
It looks like jquery.cookie.js is bundled in there but the only time it's called is in a place that's commented out to store the session ID:
https://github.com/fbrnc/Aoe_Static/blob/master/js/aoestatic/common.js#L47
I was wondering if it might make sense to add cookie support. I have some ideas on how to implement it, if so. Let me know what you think and I'll flesh out my thoughts!
Hello
I have a problem.
How to get a block via ajax which not present in loaded layout in ajax method of your controller Call ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.