Skip to content

Instantly share code, notes, and snippets.

Avatar

Sriharsha sriharsha1235

View GitHub Profile
View gist:3cb339f431bd0e0f22719876b3421b4f
https://lastcallmedia.com/blog/introducing-mannequin?utm_source=drupal-newsletter&utm_medium=email&utm_campaign=drupal-newsletter-20171012
View gist:0955d7025bf492c31584980798f03438
https://www.lullabot.com/articles/incredible-decoupled-performance-with-subrequests?utm_source=drupal-newsletter&utm_medium=email&utm_campaign=drupal-newsletter-20171019
View gist:81afc5170069ce538cd2647219dfa0a1
https://www.google.com/url?q=https%3A%2F%2Fdropsolid.com%2Fen%2Fblog%2Fload-testing-drupal-blazemeter-and-jmeter%3Futm_source%3Ddrupal-newsletter%26utm_medium%3Demail%26utm_campaign%3Ddrupal-newsletter-20171026&sa=D&sntz=1&usg=AFQjCNHemeHaWDV2yIPhOIQw4sDkls7olQ
View gist:4ea5fab8ce079101427a2845d04ba998
https://github.com/perftools/xhgui
https://github.com/tideways/php-profiler-extension
https://drupal.stackexchange.com/questions/118990/how-do-i-improve-the-performance-of-my-drupal7-site
Use XHGUI and tideways to have number of function calls
Webprofiler has timeline which has the flow of page request and time calculations.
To start debugging for performance start from the index.php before function call and after function call.
Because of that you can get the exact execution time.
You can get the response time in apache server also. There is a possibility the respsonse time would be less but to download the content it might take more time.
Do enable caching at techonolgy specific. Do at PHP level (APC), Mysql Level(Query caching), Memcache, Apache, JS, CSS, Sprite Images, Leverage requests, Check in google page speed.
View README
Doxygen Installation
Step1:
Install doxygen in ubuntu (https://www.tutorialspoint.com/articles/how-to-install-doxygen-on-ubuntu)
Step2:
Generate the sample conf file doxygen -g sample_text.conf
View Flood in custom coding
return $this->flood->isAllowed('mobile_number_verification', $this::VERIFY_ATTEMPTS_COUNT, $this::VERIFY_ATTEMPTS_INTERVAL, $this->getCallableNumber($mobile_number));
@sriharsha1235
sriharsha1235 / Drupal 8 Dynamic Menu Title
Last active Nov 17, 2016
Dynamic Routing Menu Title
View Drupal 8 Dynamic Menu Title
References
https://www.drupal.org/node/2122201
http://drupal.stackexchange.com/questions/189305/can-we-add-the-destination-query-parameter-to-a-link-from-yml-configuration
https://www.drupal.org/docs/8/api/routing-system/structure-of-routes
https://www.drupal.org/docs/8/api/menu-api/providing-module-defined-menu-links