GithubHelp home page GithubHelp logo

madalinoprea / magneto-varnish Goto Github PK

View Code? Open in Web Editor NEW
123.0 123.0 36.0 313 KB

Magento extension that implements full page caching using Varnish

Home Page: http://moprea.ro/2011/may/6/magento-performance-optimization-varnish-cache-3/

PHP 100.00%

magneto-varnish's People

Contributors

chroth avatar madalinoprea avatar sstoiana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

magneto-varnish's Issues

remote address not working

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.

Varnish 3 is out

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.

Abstract cache driver for possibility of using other cache backends

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?

Admin Panel Customer CSV shows 503 Guru Meditation

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!

git repo down ?

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

Clear Varnish Cache when using shared Varnish server

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

Flush magento cache clears the cart

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.

No section in /admin, Magento 1.5.1.0.

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? :-)

Magneto-Varnish issues with cached pages

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

Provided VCL prevent Varnish to start

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

Cache for compared items

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()) {

Unable to update any form from magento backend

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..

SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

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!

Can not duplicate Product when "Full page cache in Varnish" is enabled in Cache Storage Management

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?

Fatal Error: Unable to save any form in Magento admin

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

Currency Issue

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

Could not flush cache or do some change in backend.

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

Caching Pages with Customer info

I saw some of my clients seeing some pages with other customers info. I'm pretty sure its related to varnish caching that stuff.

Prevent cache after POST request redirection

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.