madalinoprea / magneto-varnish Goto Github PK
View Code? Open in Web Editor NEWMagento extension that implements full page caching using Varnish
Home Page: http://moprea.ro/2011/may/6/magento-performance-optimization-varnish-cache-3/
Magento extension that implements full page caching using Varnish
Home Page: http://moprea.ro/2011/may/6/magento-performance-optimization-varnish-cache-3/
Just in case something's fishy with the cached pages.
Can you clarify what license you're releasing this code under?
Hi
How would you uninstall/remove this module ?
Regards
Hi,
I noticed that all online visitors appears to be from 127.0.0.1
In magento database, log_visitor_info remote_addr is always 127.0.0.1
Do you know what could be the cause of this?
And maybe a fix.
Hello There,
First of all, awesome work, I would like to know what do you need to get done to use the new features on varnish 3?
I would gladly help you out on this.
It is good to see work being done on a full page cache for CE, but while you are at it, perhaps it could be abstracted to support implementation of other drivers such as file passthrough (via php engine, great for dev environments), nginx, etc.. Besides, all of the curl methods and such would be tucked away neatly in the driver instead of repeated throughout.
If you don't have time or don't want to do this yourself, are at least willing to accept a pull request for this?
Hello
firstable, congratulations by your module. I will write a post about it. But now I have a little issue here. Is not a big deal, but the people who runs magento admin panel need this to be running. The point is customer page and make a EXPORT CSV. With Apache we are able to download csv file but when we activate Varnish, it returns us a 503 Guru Meditation. I have done some test with VLC file without success.
Can you give us some help?
Url admin of this panel is:
if (req.url ~ "^/(index.php/)?pc_deporv") {
return(pass);
}
And URL of customer CSV export is:
pc_deporv/customer/exportCsv/
Thanks!
How would this work if varnish was running on a separate server to the Apache one ?
Hi
Is your git repo down ?
modman magneto-varnish clone http://github.com/madalinoprea/magneto-varnish.git
Initialized empty Git repository in /home/devwest/public_html/.modman/magneto-varnish/.git/
Cannot get remote repository information.
Perhaps git-update-server-info needs to be run there?
ERROR: magneto-varnish has not been checked out.
Regards
Andy
When using one Varnish server for multiple domains / magento shops, using the clear Varnish cache within one shop will also clear cache for other shops on the Varnish server. Even when shops are on differend backend servers.
Using magento 1.6.1 and Varnish 2.1
Hi,
I'm on magento 1.5.1 with varnish 2.1
Works great but I noticed a small glitch.
If a visitor have some products in cart and in the admin any product is saved or Cache is flushed, on frontend the cart apears empty on next reload. And stays that way until another product is added. Only then the visitor can see 2 products in cart (previous one added).
Do you know what could be the cause? Or maybe a solution.
Thanks.
Hey,
Had no problem checking it out, and I can confirm I have the required files in place (for example app/code/core/Mage/Adminhtml/controllers/CacheController.php). I did flush the magento cache, restarted nginx/varnish/php-fpm and then relogon. Still no Varnish Cache under General in settings.
Is it possible this module hasnt been tested with 1.5.1.0, or am I missing something obvious? :-)
Hi
our environment to test is Magento 1.3.2.4.
Varnish 2.1.5 and runs in same host with apache backend
VLC is VLC provided by Magneto-Varnish
Magento has caché items in APC opt code and sessions handled by Memcached in another Host.
I don't know if this version is compatible with your extension. The problem is when a item is selected, dropped, added, etc, a lot of times a CTRL+F5 is required to show correct page. It is as if cache does not refresh. I have tested some other pages with a custom rules like admin page and works good.
Maybe is an issue with my current scenario?
Thanks
Because all pages include the navigation menu, they should all be purged when modifying the list of categories that have "Include in Navigation Menu" enabled. Right now, only the pages that include the category are being purged.
Hello,
First of all thank you very much for sharing your work and making it open source !
I'm completely new to varnish and I'm trying to setup your module over nginx. I mean I do not use apache as webserver but nginx.
The maggento module installation went smoothly, I confirm it is working on 1.4.1.1.
I have installed varnish but when I replace default.vcl provided with setup with yours, Varnish refuses to start.
I'm using Varnish 2.0.6-2.el5 on red hat.
/etc/init.d/varnish start just give me [failed] whereas with default almost empty vcl it works.
Is there a specific varnish version to use ?
Do you think that it's coming from me using nginx ?
Thank you
Cached page is show even If a product is added to compare.
To fix that, you need to add a function in Helper/Cacheable.php like
public function hasCompareItems()
{
$compare = Mage::helper('catalog/product_compare')->getItemCount();
if($compare>0)
return false;
else
return true;
}
then in Model/Observer.php change line 32 in
if ($helper->quoteHasItems() || $helper->hasCompareItems()) {
All categories that contain a product should be invalidated when a product is saved since the cached category data could be stale if the product appears on that page. Especially if the product url is changed
When I login in magento backend,all works fine but when I edit,delete or add anything,there is no error msg but it does not update the form in magento 1.7”
Any help will be great for me.
Its a request,pls help me..
Scenario: CentOS release 5.6 (Final)
Error:
-bash-3.2# modman magneto-varnish clone https://github.com/madalinoprea/magneto-varnish.git
Cloning into magneto-varnish...
error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/madalinoprea/magneto-varnish.git/info/refs
fatal: HTTP request failed
ERROR: magneto-varnish has not been checked out.
I have tested today and yesterdy, equal result :-/
Is there any alternative way to install your module(extension)? Or, How can I fix This?
Thanks!
Magento Version: 1.5.1.0
When trying to duplicate a product while the module "Full page cache in Varnish" is enabled I am getting the following error:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '80-1' for key 'IDX_STOCK_PRODUCT'
After disabling the "Full page cache in Varnish" duplicating articles work like usual.
Any hints? Do you experience the same problem?
I installed the extension in Magento 1.7.0.2, the Varnish part works well but I get this error when trying to update any form in the Magento admin:
Fatal error: Call to a member function isActive() on a non-object in /var/www/html/magento/app/code/community/Magneto/Varnish/Helper/Data.php on line 113
I am using Varnish in a separate server, in any case that does not seem to be the problem
The part of code throwing the error is:
(line 113) if (!Mage::getSingleton('enterprise_logging/config')->isActive($eventCode, true)) {
return;
}
I have searched the web with no luck, there must be more 1.7.0.2 users with the same problem
Hi,
I have noticed that I cannot change the currency on our site. For example. If I want to switch from GBP to USD, the page is not refreshed. Is there anyway to deal with different currencies for varnish?
brendan
Rename repo and update documentation to respect Varnish trademark.
I got this erro when flushed the cache:
There has been an error processing your request
Mage registry key "_singleton/varnish/observer" already exists
Trace:
#0 /var/www/html/app/Mage.php(192): Mage::throwException('Mage registry k...')
#1 /var/www/html/app/Mage.php(446): Mage::register('_singleton/varn...', false)
#2 /var/www/html/app/code/core/Mage/Core/Model/App.php(1208): Mage::getSingleton('varnish/observe...')
#3 /var/www/html/app/Mage.php(416): Mage_Core_Model_App->dispatchEvent('http_response_s...', Array)
#4 /var/www/html/app/code/core/Mage/Core/Controller/Response/Http.php(74): Mage::dispatchEvent('http_response_s...', Array)
#5 /var/www/html/app/code/core/Mage/Core/Controller/Varien/Front.php(188): Mage_Core_Controller_Response_Http->sendResponse()
#6 /var/www/html/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front->dispatch()
#7 /var/www/html/app/Mage.php(596): Mage_Core_Model_App->run(Array)
#8 /var/www/html/index.php(80): Mage::run('', 'store')
#9 {main}
Also varnish cache cart and checkout. I am using magento 1.4.
Thanks
I saw some of my clients seeing some pages with other customers info. I'm pretty sure its related to varnish caching that stuff.
Hello,
I have been using this module for a while and there remains one issue that I couldn't solve yet.
On each page of my site I have a Newsletter signup form. After submitting this form, a POST request is performed to "/newsletter/subscriber/new" and then followed by a GET request back to the current page.
As obviously I do not want to prevent caching for each page where this form is available, I unfortunately cannot recognize this exact scenario in my VCL file. The "302 Moved Temporarily" header, which the POST request returns, causes that the Referer value for the final GET request is actually the current page URL instead of "/newsletter/subscriber/new" (which I hoped for).
Do you have any suggestions? Although I do understand that it's probably more a Varnish question, the only (non-ideal) alternatives I can think of is setting a COOKIE with a very short lifetime or adding a no-cache GET parameter to the URL.
Thanks
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.