Skip to content

Instantly share code, notes, and snippets.

View sriharsha1235's full-sized avatar

Sriharsha sriharsha1235

View GitHub Profile
@sriharsha1235
sriharsha1235 / Drupal 8 Dynamic Menu Title
Last active November 17, 2016 06:33
Dynamic Routing 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
@sriharsha1235
sriharsha1235 / Flood in custom coding
Created October 13, 2017 11:08
Drupal 8 Using Flood
return $this->flood->isAllowed('mobile_number_verification', $this::VERIFY_ATTEMPTS_COUNT, $this::VERIFY_ATTEMPTS_INTERVAL, $this->getCallableNumber($mobile_number));
@sriharsha1235
sriharsha1235 / README
Created October 13, 2017 11:10
Doxygen
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
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.
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
https://www.lullabot.com/articles/incredible-decoupled-performance-with-subrequests?utm_source=drupal-newsletter&utm_medium=email&utm_campaign=drupal-newsletter-20171019
https://lastcallmedia.com/blog/introducing-mannequin?utm_source=drupal-newsletter&utm_medium=email&utm_campaign=drupal-newsletter-20171012